﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="new_register_callback.aspx.cs" Inherits="huaguwang.virtualWeb.user.new_register_callbackNew" %>
<%@ Register src="../uc/user/footer.ascx" tagname="footer" tagprefix="uc1" %>
<%@ Register src="../uc/header.ascx" tagname="header" tagprefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <meta http-equiv="x-ua-compatible" content="ie=7" /> 
    <title>新会员免费注册</title>
    <link href="/css/css_global.css" rel="stylesheet" type="text/css" />
    <link href="/css/css_header_footer.css" rel="stylesheet" type="text/css" />
    <link href="/css/validation.css" rel="stylesheet" type="text/css" />
    <link href="/css/css_register.css" rel="stylesheet" type="text/css" />
   
    <script src="/js/jquery.min.js" type="text/javascript"></script>
    <script src="/js/validationEngine.js" type="text/javascript"></script>
    <script type="text/javascript">
        function QueryString() {
            var name, value, i;
            var str = location.href;
            var num = str.indexOf("?")
            str = str.substr(num + 1);
            var arrtmp = str.split("&");
            for (i = 0; i < arrtmp.length; i++) {
                num = arrtmp[i].indexOf("=");
                if (num > 0) {
                    name = arrtmp[i].substring(0, num);
                    value = arrtmp[i].substr(num + 1);
                    this[name] = value;
                }
            }
        }
        var qu = new QueryString();
        var msg = qu["msg"];
        $.getJSON("/user/userfunction.aspx?stype=4", { p1: msg }, function(json) {
            if (json.success == "False") {
                location.replace("/user/new_register.html");
            }
        });
        $(function() {
            $(":text").val("");
            $(":password").val("");
            $("#form1").validationEngine({ promptPosition: "centerRight", returnIsValid: false, validationEventTriggers1: "" });
            $("#btn_QD").click(function() {
                if (!$("#form1").validationEngine({ promptPosition: "centerRight", returnIsValid: true, validationEventTriggers1: "" })) {
                    return false;
                }
                var btn = $("#btn_QD");
                var ts = $("#span_ts");
                var yj = $("#txtYX").attr("value");
                var sj = $("#txtSJ").attr("value");
                btn.hide();
                ts.text("资料保存中...");
                $.getJSON("/user/userfunction.aspx?stype=5", { p1: msg, p2: yj, p3: sj }, function(json) {
                    if (json.success == "False") {
                        btn.show();
                        ts.text(json.Msg);
                    } else {
                        btn.hide();
                        ts.text("注册成功，请登录");
                        location.replace("/user/login.html");
                    }
                });
            });
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <div class="headerBG top">
            <uc2:header ID="header1" runat="server" />
        </div>
        <div class="container">
            <div id="logo">
                <img src="/images/logo.gif"/>
            </div>
            <div id="red_septal_red" class="clear">
                <h1 class="title">2.以下信息用于密码找回</h1><h2 class="title_script">(非必填，可跳过)</h2>
            </div>
            <div id="content_BG">
                <div id="content">
                    <ul class="out_per60" style="margin-top:60px;margin-left:40px;">
                        <li><label>电子邮箱：</label><input type="text" class="validate[email] input_txt" id="txtYX" /></li>
                        <li><label>手机号码：</label><input type="text" class="validate[DH] input_txt" id="txtSJ" /></li>
                        <li><input type="button" id="btn_QD" class="btn_register_finish" /></li>
                        <li><span style="margin-left:-30px;"><a href="/user/new_register.html"><font color="#3366cc" class="font_14"><<返回上一步</font></a></span></li>
                    </ul>
                </div>
                <div id="ad">
                    <img src="/images/login_register/new_register_AD.gif" />
                </div>
            </div>
            <div id="footer">
                <uc1:footer ID="footer1" runat="server" />
            </div>
        </div>
    </form>
</body>
</html>
